//
//  LCWeixinLoginVC.m
//  JK九酷云头条
//
//  Created by jiukuyinyue on 2017/11/10.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LCWeixinLoginVC.h"
#import "WXApi.h"

@interface LCWeixinLoginVC ()

@end

@implementation LCWeixinLoginVC

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = @"微信登录";
    self.view.backgroundColor = [UIColor whiteColor];//调用随机色
    [self sendAuthRequest];
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark -  第三方登录授权  -
-(void)sendAuthRequest{
    //构造SendAuthReq结构体
    SendAuthReq *req =[[SendAuthReq alloc ] init];
    req.scope = @"snsapi_userinfo" ;
    req.state = @"123";
    //第三方向微信终端发送一个SendAuthReq消息结构
    NSLog(@"[WXApi sendReq:req] = %d", [WXApi sendReq:req]);
}

@end
